<?php Yii::app()->clientScript->registerCssFile('css/InvoiceReport.css');?>
<div id="invoice-report">
    <div id="create-date">
        <?php echo date('Y-m-d'); ?>
        <br/>
        <?php echo date('H:i:s'); ?>
    </div>

    <div id="title">
        Job Report
    </div>
    <div id="content">
        <?php 
        $table=new CI_Table();
        $table->set_template(array(
            'table_open'=>'<table style="width:1300px">'
        ));
        $table->set_heading('Job ID','Customer Name','Location Name','Description','Job Status','Billing Status','Create Date','Close Date');
        foreach($data['data'] as $item){
            $table->add_row(
                    $item['jobid'],
                    $item['custno'],
                    $item['locname'],
                    $item['description'],
                    $item['jobstatustext'],
                    $item['billingstatustext'],
                    $item['addeddate'],
                    $item['closedate']
                    );
        }
        echo $table->generate();
        ?>
       
    </div>
   
  
</div>